import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'
import {message} from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import '@/assets/css/reset.css'
import '@/assets/css/style.less'
import ajax from '@/assets/js/ajax.js'
import fun from '@/assets/js/fun.js'
import config from '@/assets/js/config.js'
import '@/assets/css/style.less'/*引入公共样式*/
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import global_ from '@/components/Global'
import Loading from './components/loading'
import VueCookies from 'vue-cookies'
Vue.use(VueCookies)
// const TcPlayer = window.TcPlayer
// Vue.prototype.TcPlayer = TcPlayer

Vue.config.productionTip = false
Vue.prototype.$ajax = ajax
Vue.prototype.$config = config
Vue.prototype.$fun = fun
Vue.prototype.GLOBAL = global_
Vue.prototype.imageWebUrl = 'https://static.cdpservice.com/'
Vue.component('Loading',Loading)
Vue.use(Antd)
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

message.config({
  top: `124px`,
  duration: 2,
  maxCount: 1,
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
